package com.leen.news.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author 
 * 设置用户等级表
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "设置用户等级表")
@TableName(value = "yx_system_user_level")
public class YxSystemUserLevel implements Serializable {
    @ApiModelProperty(value = "设置用户等级表ID",example = "0")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 会员名称
     */
    @ApiModelProperty(value = "会员名称")
    @TableField(value = "name")
    private String name;

    /**
     * 购买金额
     */
    @ApiModelProperty(value = "购买金额")
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 有效时间
     */
    @ApiModelProperty(value = "有效时间")
    @TableField(value = "valid_date")
    private Integer validDate;

    /**
     * 是否为永久会员
     */
    @ApiModelProperty(value = "是否为永久会员")
    @TableField(value = "is_forever")
    private Boolean isForever;

    /**
     * 是否购买,1=购买,0=不购买
     */
    @ApiModelProperty(value = "是否购买")
    @TableField(value = "is_pay")
    private Boolean isPay;

    /**
     * 是否显示 1=显示,0=隐藏
     */
    @ApiModelProperty(value = "是否显示")
    @TableField(value = "is_show")
    private Boolean isShow;

    /**
     * 会员等级
     */
    @ApiModelProperty(value = "会员等级")
    @TableField(value = "grade")
    private Integer grade;

    /**
     * 享受折扣
     */
    @ApiModelProperty(value = "享受折扣")
    @TableField(value = "discount")
    private BigDecimal discount;

    /**
     * 会员卡背景
     */
    @ApiModelProperty(value = "会员卡背景")
    @TableField(value = "image")
    private String image;

    /**
     * 会员图标
     */
    @ApiModelProperty(value = "会员图标")
    @TableField(value = "icon")
    private String icon;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    @TableField(value = "create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 是否删除.1=删除,0=未删除
     */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_del")
    private Boolean isDel;

    /**
     * 说明
     */
    @ApiModelProperty(value = "说明")
    @TableField(value = "`explain`")
    private String explain;

    private static final long serialVersionUID = 1L;
}